From 82318db5ea5b898910d7ccbaa2afc057c9528e60 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 13 Jun 1993 21:43:15 +0000 Subject: [PATCH] (isearch-highlight): If no face `isearch', use `region'. --- lisp/isearch.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/isearch.el b/lisp/isearch.el index 46b9e0c978b..6ac5fb62d0e 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -4,7 +4,7 @@ ;; Author: Daniel LaLiberte -;; |$Date: 1993/06/06 22:11:22 $|$Revision: 1.41 $ +;; |$Date: 1993/06/09 11:53:58 $|$Revision: 1.42 $ ;; This file is not yet part of GNU Emacs, but it is based almost ;; entirely on isearch.el which is part of GNU Emacs. @@ -1332,11 +1332,13 @@ If there is no completion possible, say so and continue searching." (defvar isearch-overlay nil) (defun isearch-highlight (beg end) - (if (or (null search-highlight) (not (internal-find-face 'isearch nil))) + (if (null search-highlight) nil (or isearch-overlay (setq isearch-overlay (make-overlay beg end))) (move-overlay isearch-overlay beg end (current-buffer)) - (overlay-put isearch-overlay 'face 'isearch))) + (overlay-put isearch-overlay 'face + (if (internal-find-face 'isearch nil) + 'isearch 'region)))) (defun isearch-dehighlight (totally) (if isearch-overlay -- 2.30.2